package tools;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.testng.annotations.Test;

import java.io.IOException;

public class UseBrowser_test extends UseBrowser {
    UseBrowser ub=new UseBrowser();
    WebDriver wd;

    @Test
    public void test_setupOpear(){
        try {
            String url="http://www.jd.com";
          wd= ub.setupFirefoxHeadless();
          wd.get(url);
            System.out.println("tile:"+wd.getTitle());
            Thread.sleep(2000);
            wd.close();


        } catch (IOException e) {
            e.printStackTrace();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }


}
